/*     */ package me.wazup.kitbattle;
/*     */ public class Config { private main plugin; boolean UUID; int StartingCoins; boolean DoPlayersDropItemsOnDeath; boolean CanPlayersPickItemsOnGround; boolean CanPlayersDropItemsOnGround; boolean DoPlayersLoseHunger; int EarnedCoinsPerKill; ArrayList<String> defaultKits; ArrayList<Integer> possibleExp; ArrayList<String> allowedCommands; String ChallengeKit; boolean BroadcastRankUp; boolean BungeeMode; boolean MapShuffle; int ShuffleEveryInMinutes; boolean PurchaseableKitsArePermanent; boolean ShowRankInChat; String RanksPrefix; int StartingAmountOfKitUnlockers; ArrayList<String> commandsExecutedForChallengeWinner; ArrayList<String> commandsExecutedForChallengeLoser; boolean SendDeathMessageToEveryone; Sound dropSound;
/*     */   double SpongeBoostUpwards;
/*     */   double SpongeFallProtection;
/*     */   boolean FallDamageEnabled;
/*     */   boolean SendKillstreaksToEveryone;
/*     */   boolean useMySQL;
/*     */   HashMap<Integer, List<String>> Killstreaks;
/*     */   int UpdateTopSignsEveryInMinutes;
/*     */   String tableprefix;
/*     */   String mysqlhost;
/*     */   String mysqlport;
/*     */   String mysqldatabase;
/*     */   String mysqlusername;
/*     */   String mysqlpassword;
/*     */   int HadesCooldown;
/*     */   int HadesAmountOfDogs;
/*     */   int HadesDogsLastFor;
/*     */   int ThorCooldown;
/*     */   
/*  21 */   public Config(main plugin) { this.UUID = false;
/*  22 */     this.StartingCoins = 1000;
/*  23 */     this.DoPlayersDropItemsOnDeath = false;
/*  24 */     this.CanPlayersPickItemsOnGround = false;
/*  25 */     this.CanPlayersDropItemsOnGround = false;
/*  26 */     this.DoPlayersLoseHunger = false;
/*  27 */     this.EarnedCoinsPerKill = 10;
/*     */ 
/*     */ 
/*     */     
/*  31 */     this.ChallengeKit = "pvp";
/*  32 */     this.BroadcastRankUp = true;
/*  33 */     this.BungeeMode = false;
/*  34 */     this.MapShuffle = true;
/*  35 */     this.ShuffleEveryInMinutes = 10;
/*  36 */     this.PurchaseableKitsArePermanent = true;
/*  37 */     this.ShowRankInChat = true;
/*  38 */     this.RanksPrefix = ChatColor.GOLD + "[" + ChatColor.YELLOW + "%rank%" + ChatColor.GOLD + "] ";
/*  39 */     this.StartingAmountOfKitUnlockers = 2;
/*     */ 
/*     */     
/*  42 */     this.SendDeathMessageToEveryone = true;
/*  43 */     this.dropSound = Sound.ITEM_PICKUP;
/*  44 */     this.SpongeBoostUpwards = 1.5D;
/*  45 */     this.SpongeFallProtection = 6.75D;
/*  46 */     this.FallDamageEnabled = true;
/*  47 */     this.SendKillstreaksToEveryone = true;
/*  48 */     this.useMySQL = false;
/*  49 */     this.Killstreaks = new HashMap<Integer, List<String>>();
/*  50 */     this.UpdateTopSignsEveryInMinutes = 60;
/*     */     
/*  52 */     this.tableprefix = "kitbattle_";
/*  53 */     this.mysqlhost = "localhost";
/*  54 */     this.mysqlport = "3306";
/*  55 */     this.mysqldatabase = "database";
/*  56 */     this.mysqlusername = "root";
/*  57 */     this.mysqlpassword = "root";
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */     
/* 124 */     this.HadesCooldown = 30;
/* 125 */     this.HadesAmountOfDogs = 3;
/* 126 */     this.HadesDogsLastFor = 10;
/* 127 */     this.ThorCooldown = 10;
/* 128 */     this.ThorLightningDamage = 4;
/* 129 */     this.ThorStrikeRadius = 5;
/* 130 */     this.StomperStompRadius = 5;
/* 131 */     this.StomperMaxFallDamage = 4;
/* 132 */     this.StomperMaxDamageDealtWhenStompedWhileShifting = 4;
/* 133 */     this.SpidermanCooldown = 15;
/* 134 */     this.SpidermanWebsLastFor = 200;
/* 135 */     this.PrisonerCooldown = 60;
/* 136 */     this.PrisonerPrisonLastsFor = 100;
/* 137 */     this.ClimberCooldown = 20;
/* 138 */     this.ClimberTimeUntilChickenDisappear = 100;
/* 139 */     this.DragonCooldown = 30;
/* 140 */     this.DragonAmountOfBursts = 3;
/* 141 */     this.DragonDamageDealt = 4;
/* 142 */     this.DragonFireLastsFor = 100;
/* 143 */     this.DragonFireRange = 10;
/* 144 */     this.PhantomCooldown = 45;
/* 145 */     this.PhantomFlightLastsFor = 5;
/* 146 */     this.TimelordCooldown = 45;
/* 147 */     this.TimelordFreezeRadius = 7;
/* 148 */     this.TimelordFreezeTime = 200;
/* 149 */     this.BurrowerCooldown = 60;
/* 150 */     this.BurrowerRoomLastsFor = 160;
/* 151 */     this.ZenCooldown = 60;
/* 152 */     this.ZenMaxRange = 60;
/* 153 */     this.ViperPoisonChance = 5;
/* 154 */     this.poisonEffect = new PotionEffect(PotionEffectType.POISON, 200, 0);
/* 155 */     this.MonkCooldown = 45;
/* 156 */     this.HulkCooldown = 45;
/* 157 */     this.HulkDamageDealt = 10;
/* 158 */     this.HulkDamageRadius = 10;
/* 159 */     this.RiderCooldown = 45;
/* 160 */     this.RiderHorseLastsFor = 200;
/* 161 */     this.SummonerCooldown = 70;
/* 162 */     this.SummonerGolemLastsFor = 400;
/* 163 */     this.SuicidalCooldown = 20;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */     
/* 209 */     this.SignsPrefix = ChatColor.DARK_AQUA + "[" + ChatColor.AQUA + "KB" + ChatColor.DARK_AQUA + "]";
/* 210 */     this.JoinPrefix = ChatColor.AQUA + "Join";
/* 211 */     this.LeavePrefix = ChatColor.AQUA + "Leave";
/* 212 */     this.SoupPrefix = ChatColor.AQUA + "Soup";
/* 213 */     this.StatsPrefix = ChatColor.AQUA + "Stats";
/* 214 */     this.JoinLine3Color = ChatColor.BLACK; this.plugin = plugin; }
/*     */   int ThorLightningDamage; int ThorStrikeRadius; int StomperStompRadius; int StomperMaxFallDamage; int StomperMaxDamageDealtWhenStompedWhileShifting; int SpidermanCooldown; int SpidermanWebsLastFor; int PrisonerCooldown; int PrisonerPrisonLastsFor; int ClimberCooldown; int ClimberTimeUntilChickenDisappear; int DragonCooldown; int DragonAmountOfBursts; int DragonDamageDealt; int DragonFireLastsFor; int DragonFireRange; int PhantomCooldown; int PhantomFlightLastsFor; int TimelordCooldown; int TimelordFreezeRadius; int TimelordFreezeTime; int BurrowerCooldown; int BurrowerRoomLastsFor; int ZenCooldown; int ZenMaxRange; int ViperPoisonChance; PotionEffect poisonEffect; int MonkCooldown; int HulkCooldown; int HulkDamageDealt; int HulkDamageRadius; int RiderCooldown; int RiderHorseLastsFor; int SummonerCooldown; int SummonerGolemLastsFor; int SuicidalCooldown; String SignsPrefix; String JoinPrefix; String LeavePrefix; String SoupPrefix; String StatsPrefix; ChatColor JoinLine3Color; public void loadConfig() { FileConfiguration file = this.plugin.getConfig(); this.UUID = file.getBoolean("use-UUID"); this.StartingCoins = file.getInt("Starting-Coins"); this.DoPlayersDropItemsOnDeath = file.getBoolean("Do-Players-Drop-Items-On-Death"); this.CanPlayersPickItemsOnGround = file.getBoolean("Can-Players-Pick-Items-On-Ground"); this.CanPlayersDropItemsOnGround = file.getBoolean("Can-Players-Drop-Items-On-Ground"); this.DoPlayersLoseHunger = file.getBoolean("Do-Players-Lose-Hunger"); this.EarnedCoinsPerKill = file.getInt("Earned-Coins-Per-Kill"); this.defaultKits = new ArrayList<String>(); this.defaultKits.addAll(file.getStringList("Default-Kits")); this.possibleExp = new ArrayList<Integer>(); for (int i = file.getInt("Minimum-Exp-Per-Kill"); i < file.getInt("Maximum-Exp-Per-Kill") + 1; i++) this.possibleExp.add(Integer.valueOf(i));  this.allowedCommands = new ArrayList<String>(); for (String command : file.getStringList("Allowed-Commands")) this.allowedCommands.add(command.toLowerCase());  this.ChallengeKit = file.getString("Challenge-Kit").toLowerCase(); this.BroadcastRankUp = file.getBoolean("Broadcast-Rank-Up"); this.BungeeMode = file.getBoolean("Bungee-Mode"); this.MapShuffle = file.getBoolean("Map-Shuffle"); this.ShuffleEveryInMinutes = file.getInt("Shuffle-Every-In-Minutes"); this.PurchaseableKitsArePermanent = file.getBoolean("Purchaseable-Kits-Are-Permanent"); this.ShowRankInChat = file.getBoolean("Show-Rank-In-Chat"); this.RanksPrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Ranks-Prefix")); this.StartingAmountOfKitUnlockers = file.getInt("Starting-Amount-Of-Kit-Unlockers"); this.commandsExecutedForChallengeWinner = new ArrayList<String>(); this.commandsExecutedForChallengeLoser = new ArrayList<String>(); for (String command : file.getStringList("Commands-Executed-When-Player-Win-Challenge")) this.commandsExecutedForChallengeWinner.add(command);  for (String command : file.getStringList("Commands-Executed-When-Player-Lose-Challenge")) this.commandsExecutedForChallengeLoser.add(command);  this.SendDeathMessageToEveryone = file.getBoolean("Send-Death-Message-To-Everyone"); this.dropSound = Sound.valueOf(file.getString("Drop-Bowl-Sound").toUpperCase()); this.SpongeBoostUpwards = file.getDouble("Sponge-Boost-Upwards"); this.SpongeFallProtection = this.SpongeBoostUpwards * this.SpongeBoostUpwards * 3.0D; this.FallDamageEnabled = file.getBoolean("Fall-Damage-Enabled"); if (file.getConfigurationSection("Killstreaks") == null) { file.set("Killstreaks.3.Commands-Executed", Arrays.asList(new String[] { "kb coins add %player% 20" })); file.set("Killstreaks.5.Commands-Executed", Arrays.asList(new String[] { "kb coins add %player% 30" })); file.set("Killstreaks.10.Commands-Executed", Arrays.asList(new String[] { "kb coins add %player% 50" })); file.set("Killstreaks.20.Commands-Executed", Arrays.asList(new String[] { "kb coins add %player% 100" })); file.set("Killstreaks.30.Commands-Executed", Arrays.asList(new String[] { "kb coins add %player% 200" })); this.plugin.saveConfig(); }  if (file.getBoolean("Killstreaks-Enabled"))
/*     */       for (String amount : file.getConfigurationSection("Killstreaks").getKeys(false))
/* 217 */         this.Killstreaks.put(Integer.valueOf(amount), file.getStringList("Killstreaks." + amount + ".Commands-Executed"));   this.SendKillstreaksToEveryone = file.getBoolean("Send-Killstreaks-To-Everyone"); this.UpdateTopSignsEveryInMinutes = file.getInt("Update-Top-Signs-Every-In-Minutes"); this.useMySQL = file.getBoolean("use-mysql"); this.tableprefix = file.getString("table-prefix"); this.mysqlhost = file.getString("mysql-host"); this.mysqlport = file.getString("mysql-port"); this.mysqldatabase = file.getString("mysql-database"); this.mysqlusername = file.getString("mysql-username"); this.mysqlpassword = file.getString("mysql-password"); } public void loadSignPrefixes() { FileConfiguration file = this.plugin.fileManager.getSignsConfig();
/* 218 */     this.SignsPrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Signs-Prefix"));
/* 219 */     this.JoinPrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Join-Prefix"));
/* 220 */     this.LeavePrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Leave-Prefix"));
/* 221 */     this.SoupPrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Soup-Prefix"));
/* 222 */     this.StatsPrefix = ChatColor.translateAlternateColorCodes('&', file.getString("Stats-Prefix"));
/* 223 */     this.JoinLine3Color = ChatColor.getByChar(file.getString("Join-Line-3-Color").replace("&", "")); }
/*     */ 
/*     */   
/*     */   public void loadAbilities() {
/*     */     FileConfiguration file = this.plugin.fileManager.getAbilitiesConfig();
/*     */     this.HadesCooldown = file.getInt("Abilities.Hades.Cooldown");
/*     */     this.HadesAmountOfDogs = file.getInt("Abilities.Hades.Amount-Of-Dogs");
/*     */     this.HadesDogsLastFor = file.getInt("Abilities.Hades.Dogs-Last-For") * 20;
/*     */     this.ThorCooldown = file.getInt("Abilities.Thor.Cooldown");
/*     */     this.ThorLightningDamage = file.getInt("Abilities.Thor.Lightning-Damage") * 2;
/*     */     this.ThorStrikeRadius = file.getInt("Abilities.Thor.Strike-Radius");
/*     */     this.StomperStompRadius = file.getInt("Abilities.Stomper.Stomp-Radius");
/*     */     this.StomperMaxFallDamage = file.getInt("Abilities.Stomper.Max-Fall-Damage") * 2;
/*     */     this.StomperMaxDamageDealtWhenStompedWhileShifting = file.getInt("Abilities.Stomper.Max-Damage-Dealt-When-Stomped-While-Shifting") * 2;
/*     */     this.SpidermanCooldown = file.getInt("Abilities.Spiderman.Cooldown");
/*     */     this.SpidermanWebsLastFor = file.getInt("Abilities.Spiderman.Webs-Last-For") * 20;
/*     */     this.PrisonerCooldown = file.getInt("Abilities.Prisoner.Cooldown");
/*     */     this.PrisonerPrisonLastsFor = file.getInt("Abilities.Prisoner.Prison-Lasts-For") * 20;
/*     */     this.ClimberCooldown = file.getInt("Abilities.Climber.Cooldown");
/*     */     this.ClimberTimeUntilChickenDisappear = file.getInt("Abilities.Climber.Time-Until-Chicken-Disappear") * 20;
/*     */     this.DragonCooldown = file.getInt("Abilities.Dragon.Cooldown");
/*     */     this.DragonAmountOfBursts = file.getInt("Abilities.Dragon.Amount-Of-Bursts");
/*     */     this.DragonDamageDealt = file.getInt("Abilities.Dragon.Damage-Dealt") * 2;
/*     */     this.DragonFireLastsFor = file.getInt("Abilities.Dragon.Fire-Lasts-For") * 20;
/*     */     this.DragonFireRange = file.getInt("Abilities.Dragon.Fire-Range");
/*     */     this.PhantomCooldown = file.getInt("Abilities.Phantom.Cooldown");
/*     */     this.PhantomFlightLastsFor = file.getInt("Abilities.Phantom.Flight-Lasts-For");
/*     */     this.TimelordCooldown = file.getInt("Abilities.Timelord.Cooldown");
/*     */     this.TimelordFreezeRadius = file.getInt("Abilities.Timelord.Freeze-Radius");
/*     */     this.TimelordFreezeTime = file.getInt("Abilities.Timelord.Freeze-Time") * 20;
/*     */     this.BurrowerCooldown = file.getInt("Abilities.Burrower.Cooldown");
/*     */     this.BurrowerRoomLastsFor = file.getInt("Abilities.Burrower.Room-Lasts-For") * 20;
/*     */     this.ZenCooldown = file.getInt("Abilities.Zen.Cooldown");
/*     */     this.ZenMaxRange = file.getInt("Abilities.Zen.Max-Range");
/*     */     this.ViperPoisonChance = Integer.valueOf(file.getString("Abilities.Viper.Poison-Chance").replace("%", "")).intValue();
/*     */     this.poisonEffect = new PotionEffect(PotionEffectType.POISON, file.getInt("Abilities.Viper.Poison-Lasts-For") * 20, file.getInt("Abilities.Viper.Poison-Level") - 1);
/*     */     this.MonkCooldown = file.getInt("Abilities.Monk.Cooldown");
/*     */     this.HulkCooldown = file.getInt("Abilities.Hulk.Cooldown");
/*     */     this.HulkDamageDealt = file.getInt("Abilities.Hulk.Damage-Dealt") * 2;
/*     */     this.HulkDamageRadius = file.getInt("Abilities.Hulk.Damage-Radius");
/*     */     this.RiderCooldown = file.getInt("Abilities.Rider.Cooldown");
/*     */     this.RiderHorseLastsFor = file.getInt("Abilities.Rider.Horse-Lasts-For") * 20;
/*     */     this.SummonerCooldown = file.getInt("Abilities.Summoner.Cooldown");
/*     */     this.SummonerGolemLastsFor = file.getInt("Abilities.Summoner.Golem-Lasts-For") * 20;
/*     */     this.SuicidalCooldown = file.getInt("Abilities.Suicidal.Cooldown");
/*     */   } }


/* Location:              C:\Users\韩烨均\Documents\Tencent Files\133280410\FileRecv\KitBattle.jar!\me\wazup\kitbattle\Config.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       1.1.2
 */